package com.asset.service.imp;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;

import com.asset.pojo.AssetOperate;
import com.asset.service.BaseService;
import com.asset.service.AssetOpteService;

@Service
public class AssetOpteServiceImp extends BaseService implements AssetOpteService{

	@Override
	public void insertAssetOpte(AssetOperate operate) {
		
		assetOpteMapper.insertAssetOpte(operate);
		
	}

	@Override
	public void deleAssetOpteByKey(long id) {
		
		assetOpteMapper.deleteAssetOpteByKey(id);
		
	}

	@Override
	public AssetOperate getAssetOpteByKey(long id) {

		return assetOpteMapper.getAssetOpteByKey(id);
	}

	@Override
	public List<AssetOperate> listAssetOpteAll() {
		
		return assetOpteMapper.listAssetOpteAll();	
	}

	@Override
	public List<AssetOperate> listAssetOptePage(String SearchTemp, Integer start, Integer end, Short opteGenera, Date opteTime1, Date opteTime2) {
		
		return assetOpteMapper.listAssetOptePage(SearchTemp, start, end, opteGenera, opteTime1, opteTime2);
	}

	@Override
	public List<AssetOperate> listAssetOpteByKeyAndString(Long id, String SearchTemp) {
		
		return assetOpteMapper.listAssetOpteByKeyAndString(id, SearchTemp);
	}
}
